<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>PSM TESTS</title>
</head>
<body>
	<h1>Liste des utilisateurs</h1>
	<s:iterator value="listUsers">
		<s:property value="adresseUser" /> - <s:property value="id.emailUser" /> - <s:property value="prenomUser" />
		<s:url id="removeUrl" action="deleteUser">
			<s:param name="id" value="id" />
		</s:url>
			<s:a href="%{removeUrl}">Remove</s:a>
		<br>
	</s:iterator>
	<hr>
	<h1>Ajouter utilisateur</h1>
	<s:form action="saveUser" validate="false">
		<s:textfield id="id" name="id" cssStyle="display:none" />
		<s:textfield id="Email" label="Email" name="id.email" />
		<s:textfield id="prenom" label="Prenom" name="prenomUser" />
		<s:textfield id="Nom" label="Nom" name="nomUser" />
		<s:submit />
	</s:form>
</body>
</html>
